<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class tipoEnfermedad {
    var $CI;   
    function tipoEnfermedad(){
        $this->CI =& get_instance();
       $this->CI->load->database();        
    }
    function llenarcombo() {
       
        $query = $this->CI->db->query("Select * from tipoexamen");
        if ($query->num_rows() > 0)
        {
           foreach ($query->result() as $row)
           {
               echo "<option value='".$row->TipoEnfermedad."'> ". $row->Descripcion."</option>";
           }        
        }
    } 
    function llenarcomboExamen($TipEnfermedad) {
  
        $query = $this->CI->db->query("Select * from examen");
        if ($query->num_rows() > 0)
        {
           foreach ($query->result() as $row)
           {
               echo "<option value='".$row->TipoEnfermedad."'> ". $row->Descripcion."</option>";
           }        
        }
    } 
}
?>
